package com.example.accessibilityservice

import android.content.Intent
import android.os.Bundle
import android.provider.Settings
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import androidx.appcompat.app.AppCompatActivity
import com.example.accessibilityservice.server.MAccessibilityServer
import kotlinx.android.synthetic.main.activity_main.*


class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        extended_fab.setOnClickListener {
//            val animator = ValueAnimator.ofFloat()
//            val anim: Animation = AnimationUtils.loadAnimation(this, R.anim.fab_anim)
//            it.startAnimation(anim)
            val intent = Intent()
            intent.setAction(Settings.ACTION_ACCESSIBILITY_SETTINGS)
            startActivity(intent)
        }
        text.setOnClickListener {
        }
    }
}